package MyTest;

import la.bbs558.util.bit.IBit;

import java.util.List;

import static la.bbs558.util.bit.BitEnum.*;
import static la.bbs558.util.bit.IBit.*;

public class BitDemo {

    public static void main(String[] args) {
        Integer merge = merge(A,B,D);
        List<IBit> contains = N.include(merge);
        System.out.println("contains = " + contains);
        boolean containsAC = contains(merge, A,C);
        boolean containsBD = contains(merge, B,D);
        Integer removeA = remove(merge, A);
        Integer removeB = remove(merge, B);
        Integer removeCD = remove(merge, C,D);
        Integer removeAD = remove(merge, A,D);
        System.out.println("merge = " + merge);
        System.out.println("containsAC = " + containsAC);
        System.out.println("containsBD = " + containsBD);
        System.out.println("removeA = " + removeA);
        System.out.println("removeB = " + removeB);
        System.out.println("removeCD = " + removeCD);
        System.out.println("removeAD = " + removeAD);
    }

}
